<h1>pyro:pages</h1>

<p>The <em>pages</em> tag displays page info.</p>

<h2>Tags</h2>

<h3>{pyro:pages:url}</h3><br />

<p>Gets a page's URL based on its ID.</p>

<p><strong>Parameters</strong></p>

<table cellpadding="0" cellspacing="0">

	<tr>
		<th>Parameter</th>
		<th>Default</th>
		<th>Description</th>
	</tr>
	
	<tr>
		<td width="100">id</td>
		<td width="100"></td>
		<td>Required. Page ID the URL the tag should return.</td>
	</tr>

</table>

<p><strong>Example</strong></p>

<pre><code>{pyro:pages:url id="4"}​</code></pre>

<pre><code>http://www.example.com/about</code></pre>

<br />

<h3>{pyro:pages:children}</h3><br />

<p>Tag pair that loops through the children of a parent page.</p>

<p><strong>Parameters</strong></p>

<table cellpadding="0" cellspacing="0">

	<tr>
		<th>Parameter</th>
		<th>Default</th>
		<th>Description</th>
	</tr>
	
	<tr>
		<td width="100">id</td>
		<td width="100"></td>
		<td>Required. Page ID of the page you want the children for.</td>
	</tr>

	<tr>
		<td width="100">limit</td>
		<td width="100"></td>
		<td>Required. Number of items to return.</td>
	</tr>

</table>

<p><strong>Example</strong></p>

<pre><code>{pyro:pages:children id="1" limit="2"}
	&lt;h2&gt;{title}&lt;/h2&gt;
	{body}
{/pyro:pages:children}</code></pre>

<pre><code>&lt;h2&gt;Child One&lt;/h2&gt;
Body Content One
	
&lt;h2&gt;Child Two&lt;/h2&gt;
Body Content Two
</code></pre>